package com.zzt.entity;

public class PayNeed {
    private Memberinfo user;
    private double totalPrice;
    private double discount;

    public PayNeed() {
    }

    @Override
    public String toString() {
        return "PayNeed{" +
                "user=" + user +
                ", totalPrice=" + totalPrice +
                ", discount=" + discount +
                '}';
    }

    public Memberinfo getUser() {
        return user;
    }

    public void setUser(Memberinfo user) {
        this.user = user;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public PayNeed(Memberinfo user, double totalPrice, double discount) {
        this.user = user;
        this.totalPrice = totalPrice;
        this.discount = discount;
    }
}
